<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>    
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page isELIgnored ="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Show All Borrow Books</title>
</head>
<body align="center">
<h1>laotou99 图书管理系统</h1>
<p><h2>所有几经借出的图书</h2></p>

<div align="center">
<p align="center">
	<a href="addBorrowBook">新增借书单</a>
	&nbsp;&nbsp;&nbsp;&nbsp;
<c:url var="formAction" value="/showbook" />	
	<a href="${formAction}">返回主页</a>
</p>
<table border="1">
<tr>
<th>ID</th>
<th>［借书订单编号］</th>
<th>［订单创建时间］</th>
<th>［借书时间］</th><th>［客户名字］</th><th>［还书时间］</th>
<th>［是否还书］</th><th>［备注1］</th>
<th>［备注2］</th><th>操作</th>
</tr>
<c:forEach items="${borrowbooks}" var="bbs1">
	<tr>
		<td>${bbs1.id}</td>
		<td>${bbs1.borno}</td>
		<td>
		<fmt:formatDate type="both" dateStyle="full" value="${bbs1.createtime}"/>
		</td>
		<td> 
		<fmt:formatDate type="both" dateStyle="full" value="${bbs1.bortime}"/>		
		</td>
		<td>${bbs1.custname}</td>
		<td>
		<fmt:formatDate type="both" dateStyle="full" value="${bbs1.returndate}"/>		
		</td>
		<td>${bbs1.isreturn}</td>
		<td>${bbs1.remark1}</td>
		<td>${bbs1.remark2}</td>
		<td>
		<a href="updateDataBorrowOrder/${bbs1.id}">还书</a>
		|
		<a href="showDetailBorrowOrder/${bbs1.id}">查看</a>
		</td>
	</tr>
</c:forEach>
</table>
</div>
</body>
</html>